<?php

class Application_Form_Searchuser extends Zend_Form
{

    public function init()
    {
        $this->setName("nachricht");
        $this->setMethod('post');
        
        
        $vorname = new Zend_Form_Element_Text('vorname');
        $vorname->setLabel('Vorname:')
        	->setOptions(array('id' => 'fname'))
        	->addFilter('HtmlEntities');
        

        $mail = new Zend_Form_Element_Text('mail');
        $mail->setLabel('E-Mail:')
        ->setOptions(array('id' => 'fname'))
        ->addFilter('HtmlEntities')
    	->addValidator('EmailAddress', true);
		/*
        $friends = new Zend_Form_Element_Checkbox('friends');
        $friends->setLabel('Freund')
        	->setOptions(array('class' => 'submit'));
        */
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setLabel('Suchen')
		->setOptions(array('class' => 'submit'));
        

        $this->addElement($vorname)
			->addElement($mail)
			//->addElement($friends)
			->addElement($submit);
    }


}


